<template>
  <div class="vue2-verify clearfix">
    <el-scrollbar style="height: 100%">
    <div class="main">
      <el-card class="box-card mb15" shadow="hover">
        <div slot="header" class="clearfix">
          <span class="fs16"><a class="ml5" target="_blank" href="https://github.com/trionfo1993/vue2-verify">https://github.com/trionfo1993/vue2-verify</a></span>
        </div>
        <div class="fs14 p10 lh20 text-left">
          <code>
            npm i vue2-verify
          </code>
        </div>
      </el-card>
      <div class="inline-block m20">
        <Verify @success="alert('success')" @error="alert('error')" :type="1"></Verify>
      </div>
      <div class="inline-block m20">
        <Verify @success="alert('success')" @error="alert('error')" :type="2"></Verify>
      </div>
      <div class="inline-block m20">
        <Verify @success="alert('success')" @error="alert('error')" :type="3"></Verify>
      </div>
      <div class="inline-block m20">
        <Verify @success="alert('success')" @error="alert('error')" :type="4"></Verify>
      </div>
      <div class="inline-block m20">
        <Verify @success="alert('success')" @error="alert('error')" :type="5"></Verify>
      </div>
    </div>
    </el-scrollbar>
  </div>
</template>

<script>
import Verify from 'vue2-verify'

export default {
  name: 'VueVerify',
  components: {
    Verify
  },
  data () {
    return {
      editorContent: ''
    }
  },
  methods: {
    alert (text) {
      alert(text)
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss">
.vue2-verify{
  margin: 0 auto;
  overflow: hidden;
  .main{
    padding: 10px;
  }
}
</style>
